package com.wsd.bean;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;

/**
 * Message entity. @author MyEclipse Persistence Tools
 */

public class Message implements java.io.Serializable {

	// Fields

	private Integer MId;
	private Admin admin;
	private Message message;
	private Users users;
	private String MContent;
	private Timestamp MTime;
	private String MMobile;
	private String MEmail;
	private String MName;
	private boolean replay;
	private Set messages = new TreeSet();

	// Constructors

	/** default constructor */
	public Message() {
	}

	/** minimal constructor */
	public Message(String MContent, Timestamp MTime) {
		this.MContent = MContent;
		this.MTime = MTime;
	}

	/** full constructor */
	public Message(Admin admin, Message message, Users users, String MContent,
			Timestamp MTime, String MMobile, String MEmail, String MName,
			Set messages) {
		this.admin = admin;
		this.message = message;
		this.users = users;
		this.MContent = MContent;
		this.MTime = MTime;
		this.MMobile = MMobile;
		this.MEmail = MEmail;
		this.MName = MName;
		this.messages = messages;
	}

	// Property accessors

	public Integer getMId() {
		return this.MId;
	}

	public void setMId(Integer MId) {
		this.MId = MId;
	}

	public Admin getAdmin() {
		return this.admin;
	}

	public void setAdmin(Admin admin) {
		this.admin = admin;
	}

	public Message getMessage() {
		return this.message;
	}

	public void setMessage(Message message) {
		this.message = message;
	}

	public Users getUsers() {
		return this.users;
	}

	public void setUsers(Users users) {
		this.users = users;
	}

	public String getMContent() {
		return this.MContent;
	}

	public void setMContent(String MContent) {
		this.MContent = MContent;
	}

	public Timestamp getMTime() {
		return this.MTime;
	}

	public void setMTime(Timestamp MTime) {
		this.MTime = MTime;
	}

	public String getMMobile() {
		return this.MMobile;
	}

	public void setMMobile(String MMobile) {
		this.MMobile = MMobile;
	}

	public String getMEmail() {
		return this.MEmail;
	}

	public void setMEmail(String MEmail) {
		this.MEmail = MEmail;
	}

	public String getMName() {
		return this.MName;
	}

	public void setMName(String MName) {
		this.MName = MName;
	}

	public Set getMessages() {
		return this.messages;
	}

	public void setMessages(Set messages) {
		this.messages = messages;
	}

	public boolean getReplay() {
		return replay;
	}

	public void setReplay(boolean replay) {
		this.replay = replay;
	}
	

}